﻿using Lamex.Base.Framework.BaseAbs;
using Lamex.SystemManager.Bridge;
using Lamex.SystemManager.Interfaces;
using Lamex.SystemManager.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lamex.SystemManager.BLL
{
    public class Sys_Menu : BaseBLL<Sys_MenuInfo>
    {
        public ISys_Menu dal = null;
        public Sys_Menu()
	   {
           base.Init(this.GetType().FullName, System.Reflection.Assembly.GetExecutingAssembly().GetName().Name);
           //if (BridgeFactory.BridgeType == BridgeType.ADODirect)
           dal = new ADODirect_Sys_Menu().GetInstance();


           //if (BridgeFactory.BridgeType == BridgeType.ADODirect)
           //    dal = new UserChannel();
               
       }
       public List<MenuNodeInfo> GetTree(string systemType)
        {
            return dal.GetTree(systemType);
        }
    }
}
